import 'dart:ui';

import 'package:flutter/material.dart';

class FilterPage extends StatefulWidget {
  final Map<String, dynamic> arguments;
  FilterPage({Key key, this.arguments}) : super(key: key);

  @override
  _FilterPageState createState() => _FilterPageState();
}

class _FilterPageState extends State<FilterPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('FilterPage'),
      ),
      body: ListView(
        children: <Widget>[
          ListTile(
            title: Text('ImageFilter'),
            subtitle: Container(
              height: 200.0,
              child: Stack(
                fit: StackFit.expand,
                children: <Widget>[
                  Image.asset('resources/images/others/flash_screen.jpg', fit: BoxFit.cover, scale: 2.0),
                  // ConstrainedBox(
                  //   constraints: BoxConstraints.expand(),
                  //   child: Image.asset('resources/images/others/flash_screen.jpg', fit: BoxFit.cover, scale: 2.0),
                  // ),
                  ClipRRect(
                    child: BackdropFilter(
                      filter: ImageFilter.blur(sigmaX: 4.0, sigmaY: 4.0),
                      child: Center(
                        child: Text(
                          'CoderSun',
                          style: Theme.of(context).textTheme.headline2,
                        ),
                      ),
                    ),
                  ),
                ],
              ),
            ),
          ),
          Divider(height: 1.0),
        ],
      ),
    );
  }
}
